﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NabNetLib.Packet
{
    public enum SleepState { WakeUp = 0, Sleep = 1 };

    public class SleepPacket : Packet
    {
        private SleepState mSleepState = 0;

        public SleepPacket()
        {
        }

        public SleepPacket(SleepState state)
        {
            mSleepState = state;
        }

        public void SetState(SleepState s)
        {
            mSleepState = s;
        }

        public override PacketType GetPacketType()
        {
            return PacketType.Sleep;
        }

        protected override byte[] GetInternalData()
        {
            return new byte[]{(byte)mSleepState};
        }
    }
}
